]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Focus entry after extending session
authorIgnacy Kuchciński <ignacykuchcinski@gnome.org>
Fri, 9 Jan 2026 14:14:23 +0000 (15:14 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 14 Jan 2026 14:41:48 +0000 (15:41 +0100)
Re-focus password entry after ignoring screen time limits for the rest
of the day.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3999>

js/gdm/authPrompt.js

index 1486a97fca214080333746f139623db74821c979..1d5a5f26b12f03eeeaaad34fea862e34228c072d 100644 (file)
@@ -807,6 +807,9 @@ export const AuthPrompt = GObject.registerClass({
             this.replace_child(this._mainContent, newMainContent);
             this._mainContent = newMainContent;
         }
+
+        if (this._mainContent === this._inputWell)
+            this._entry.grab_key_focus();
     }
 
     begin(params) {